package org.jeecg.modules.wms.service;

import org.jeecg.modules.wms.entity.WmsOutboundDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * @Description: 出库单明细服务接口
 * @Author: jeecg-boot
 * @Date: 2023-07-01
 * @Version: V1.0
 */
public interface IWmsOutboundDetailService extends IService<WmsOutboundDetail> {
    
    /**
     * 根据出库单ID查询明细列表
     *
     * @param outboundId 出库单ID
     * @return 明细列表
     */
    List<WmsOutboundDetail> selectByOutboundId(String outboundId);
    
    /**
     * 根据出库单ID删除明细
     *
     * @param outboundId 出库单ID
     * @return 操作结果
     */
    boolean deleteByOutboundId(String outboundId);
    
    /**
     * 批量保存明细
     *
     * @param outboundId 出库单ID
     * @param outboundDetailList 明细列表
     * @return 操作结果
     */
    boolean saveBatch(String outboundId, List<WmsOutboundDetail> outboundDetailList);

    List<WmsOutboundDetail> selectByOutboundIdAndUpdateBy(String id, String username);
}